package com.zbkj.service.service;


import com.zbkj.common.vo.ValidateCode;

/**
 * ValidateCodeService 接口
 * +----------------------------------------------------------------------
 * | Author:
 * +----------------------------------------------------------------------
 */
public interface ValidateCodeService {

    /**
     * 获取图片验证码
     * @param type  0 服务端登录验证码  1客户端登录验证码
     * @return CommonResult
     */
    ValidateCode get(int type);

    /**
     * 验证验证码
     * @param type  0 服务端登录验证码  1客户端登录验证码
     */
    Boolean check(String key, String code, int type);
}